package com.learning.spring.bean.injection.method.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.support.MethodReplacer;

import java.lang.reflect.Method;
import java.util.Date;
import java.util.StringJoiner;

/**
 * ClassName: UserReplace
 * Description: 实体类
 * Date: 2020/7/22 9:52 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Setter
@Getter
public class UserReplace implements MethodReplacer {

    @Override
    public Object reimplement(Object obj, Method method, Object[] args) throws Throwable {
        System.out.println("使用 reimplement 方法替换配置的需要被替换的方法");
        return new Address();
    }
}
